import { createApp } from 'vue';
import root from './App.vue';
import router from '@/router';
import store from './store';
import 'virtual:svg-icons-register';
import SvgIcon from '@/components/SvgIcon.vue';
import IconText from '@/components/IconText.vue';
import ElementPlus from 'element-plus';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import './permission';
import '@/style/element-ui.scss';
import '@/style/style.css';
import '@/style/index.scss';

const App = createApp(root);
App.use(router);
App.use(store);
App.use(ElementPlus, { locale: zhCn, size: 'default', zIndex: 3000 });
App.component('svg-icon',SvgIcon);
App.component('icon-text',IconText);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    App.component(key, component)
}
App.mount('#app')

